{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
        <!-- nav --><!-- nav -->
            
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>定制信息列表</h2>
	</div>
	<div class="cf">
		<div class="fl">
            <a class="btn" href="{eval echo site_url('statistics/custinfo_add')}">新 增</a>
        </div>

        <!-- 高级搜索 -->
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="text" name="name" class="search-input" value="" placeholder="请输入名称或者ID">
				<a class="sch-btn" href="javascript:;" id="search" url=""><i class="btn-search"></i></a>
			</div>
		</div>
    </div>
	
	<!-- 数据列表 -->
    <div class="data-table table-striped">
		<table>
			<thead>
				<tr>
				<th class="">名称</th>
				<th class="">目标url</th>
				<th class="">添加时间</th>
				<th class="">操作</th>
				</tr>
			</thead>
			<tbody>
				<!--{loop $list $val}-->
				<tr>
					<td>{$val['title']}</td>
					<td>{$val['url']}</td>
					<td>{$val['creat_time']}</td>

					<td>
						<a title="编辑" href="{eval echo site_url('statistics/custinfo_edit')}?id={$val['id']}">编辑</a>
						<a title="复制统计链接" href="javascript:;" class="copyclis" data-clipboard-text="http://wx.tan66.com/s/{$val['id']}.html">复制统计链接</a>
					</td>
				</tr>
				<!--{/loop}-->
			</tbody>
		</table>
		<!-- 分页 -->
	    <div class="page">
	        <div>
			{$showpage}
			<span class="rows">共 {$Total} 条记录</span>
			</div>
		</div>
		
	</div>
	<script src="/static/public/layer.js" type="text/javascript" charset="utf-8"></script>
	<script src="/static/public/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
	<script>
		$(function () {
            var clipboard = new ClipboardJS('.copyclis');
            clipboard.on('success', function(e) {
                console.log(e);
                layer.msg("复制成功");
            });
            clipboard.on('error', function(e) {
                console.log(e);
                layer.open({
                    title: '复制失败，请手动复制'
                    ,content: e.text
                });
            });
        });

	</script>
<!--F-->{load footer}